package com.kakarote.hrm.controller;

import com.kakarote.core.common.Result;
import com.kakarote.core.entity.BasePage;
import com.kakarote.hrm.entity.BO.QueryEmployeeDataBo;
import com.kakarote.hrm.entity.VO.EmployeeDataIntegrityVo;
import com.kakarote.hrm.service.IHrmEmployeeDataIntegrityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 * 员工数据完整度 前端控制器
 * </p>
 *
 * @author guomenghao
 * @since 2021-04-14
 */
@RestController
@RequestMapping("/hrmEmployeeDataIntegrity")
@Api(tags = "员工管理-员工数据完整度")
public class HrmEmployeeDataIntegrityController {


    @Autowired
    private IHrmEmployeeDataIntegrityService employeeDataIntegrityService;

    @PostMapping ("/queryEmployeeDataIntegrity")
    @ApiOperation("查询部门内员工数据详情")
    public Result<BasePage<EmployeeDataIntegrityVo>> queryEmployeeDataIntegrity(@RequestBody QueryEmployeeDataBo queryEmployeeDataBo) {
        return Result.ok(employeeDataIntegrityService.queryEmployeeDataIntegrity(queryEmployeeDataBo));
    }

}

